# Be sure to restart your server when you modify this file

# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.9' unless defined? RAILS_GEM_VERSION

# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')

Rails::Initializer.run do |config|
  # Specify gems that this application depends on and have them installed with rake gems:install
  config.gem "rake", :version => "0.8.7"
  config.gem "fastercsv"  #as_export (csv)
  config.gem "paginator"  #recordselect
  config.gem "rmagick", :lib => "RMagick2"  #paperclip
  config.gem "RedCloth", :version => "4.2.3"  #irwi
  #config.gem "bluecloth", :version => '>= 2.0.0'  #irwi
  config.gem "diff-lcs", :lib => 'diff/lcs' #irwi
  config.gem "haml"
  config.gem "sass"
  config.gem "surpass"    #as_export (excel)
  config.gem "antlr3"
  config.gem "prawn"      #prawnto
  config.gem "will_paginate", :version => '< 3.0'
  config.gem "tiny_mce"
  config.gem "paperclip"
  config.gem "odf-report"
  config.gem "validates_timeliness", :version => '~> 2.3'
  config.gem "calendar_date_select"
  config.gem "authlogic", :version => '2.1.6'
  config.gem "irwi", :version => '0.2.4'
  config.gem "validation_reflection", :version => '0.3.8'
  config.gem "dotiw", :version => '0.4.1'
  #
  config.gem "rack", :version => '1.1.1'
  config.gem "thin", :version => '1.2.5'

  # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
  # Run "rake -D time" for a list of tasks for finding time zone names.
  config.time_zone = 'Rome'

  # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
  # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
  config.i18n.default_locale = :it

  class String
    def to_iso
      Iconv.conv('ISO-8859-1//IGNORE', 'utf-8', self)
    end
  end

  SHOW_DELETED = false
end
